package com.springhone.side.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.springhone.side.domain.Joke;
import com.springhone.side.repository.dao.JokeDao;
import com.springhone.side.service.JokeService;

@Service("jokeService")
public class JokeServiceImpl implements JokeService {

    private JokeDao jokeDao;

    @Override
    public Joke create(Joke joke) {
        return jokeDao.save(joke);

    }

    @Autowired
    public void setJokeDao(JokeDao jokeDao) {
        this.jokeDao = jokeDao;
    }

}
